package com.platform.api.bzproject.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分销收益表
 * </p>
 *
 * @author guoshao
 * @since 2021-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_distribution_profit")
public class DistributionProfit extends Model {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long bid;

    /**
     * 所属用户ID
     */
    private String userId;

    /**
     * 来源用户ID
     */
    private String souUserId;

    /**
     * 收益金额
     */
    private BigDecimal money;

    /**
     * 来源
     */
    private Integer source;

    /**
     * 流水号
     */
    private String flowNo;

    /**
     * 小程序appid
     */
    private String appid;

    /**
     * 状态：1：待结算；2已结算；3已打款
     */
    private Integer status;

    private String remarks;

    private Date updateTime;

    private Date createTime;

    @TableField(exist = false)
    private String stime;

    private int platformType;

}
